package com.example.micro_property_springboot.pojo.DTO.user;

import com.baomidou.mybatisplus.annotation.TableField;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
public class UserDTO {

    @TableField(value = "username")
    @NotNull(message = "用户名不能为空")
    private String userName;

    @TableField(value = "password")
    @NotNull(message = "密码不能为空")
    private String password;
}
